home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.xml.parser;
-
- import org.w3c.dom.Comment;
- import org.w3c.dom.Node;
-
- public class TXComment extends TXCharacterData implements Comment {
- static final long serialVersionUID = 1828125899632355320L;
-
- public TXComment(String var1) {
- super.data = var1;
- }
-
- public synchronized Object clone() {
- ((Child)this).checkFactory();
- TXComment var1 = (TXComment)super.factory.createComment(super.data);
- ((Child)var1).setFactory(((Child)this).getFactory());
- return var1;
- }
-
- public synchronized boolean equals(Node var1, boolean var2) {
- if (var1 == null) {
- return false;
- } else if (!(var1 instanceof Comment)) {
- return false;
- } else {
- Comment var3 = (Comment)var1;
- return var3.getData().equals(((TXCharacterData)this).getData());
- }
- }
-
- public short getNodeType() {
- return 8;
- }
-
- public String getNodeName() {
- return "#comment";
- }
-
- public String getText() {
- return "";
- }
-
- public void acceptPre(Visitor var1) throws Exception {
- var1.visitCommentPre(this);
- }
-
- public void acceptPost(Visitor var1) throws Exception {
- var1.visitCommentPost(this);
- }
- }
-